const Router = require('@koa/router');
const ImageController = require('../controllers/imageController');
const authMiddleware = require('../middlewares/auth');

const router = new Router({ prefix: '/api/image' });

router.post('/generate', authMiddleware, ImageController.generateImage);

module.exports = router;